-
Notifications
You must be signed in to change notification settings - Fork 0
cc: toolchain: Add x86_64 sysroot [CLARM-39] #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
jungleraptor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would also like a link to a test PR I can run so we can test these changes on mac.
|
@isaactorz Here is the test PR: https://github.com/swift-nav/orion/pull/5903 |
| fail(target_system_name + " is not a target tripplet") | ||
|
|
||
| cross_compile = host_system_name != target_system_name | ||
| use_bundled_libcpp = builtin_sysroot != None and not is_darwin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| use_bundled_libcpp = builtin_sysroot != None and not is_darwin | |
| use_libstdcpp = builtin_sysroot != None and not is_darwin |
nit - the variable name doesn't match the logic. When this is true we should use libstdc++ not libc++
jungleraptor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Fixes #92. We made it so that the condition that chooses between libstdc++ and libc++ always ends up selecting libstdc++. See PR for more details. The fix required a fairly non-trivial refactor of our toolchain configuration algorithm in cc_toolchain_config to support all the configurations we want.
This PR adds ability to use x86_64 sysroot with llvm toolchain. Usage:
bazel build //... --@rules_swiftnav//cc:enable_sysroot=trueRelated PR
swift-nav/swift-toolchains#19